package com.springboot.codeminestarter.codemine.business.role.service;

import com.springboot.codeminestarter.codemine.business.role.dao.RoleDao;
import com.springboot.codeminestarter.codemine.business.role.domain.SysRole;
import com.springboot.codeminestarter.codemine.business.role.service.impl.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleService implements IRoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public List<SysRole> getRoleList() {
        return roleDao.getRoleList();
    }

    @Override
    public List<SysRole> getRoleListByUserId(String userId) {
        return roleDao.getRoleListByUserId(userId);
    }

    @Override
    public void addRole(SysRole role) {




        roleDao.addRole(role);
    }
}
